package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tea.inventory.base.validation.groups.CreateGroup;
import org.tea.inventory.base.validation.groups.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 表彰表
 */
@ApiModel(value = "org-alumni-record-mall-domain-MallCommend")
@Data
@NoArgsConstructor
public class MallCommendDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 表彰id
     */
    @ApiModelProperty(value = "表彰id")
    @NotNull(message = "表彰id不能为空", groups = {UpdateGroup.class})
    private Long commendId;
    /**
     * 31-部门表彰 32-公司表彰 33-客户表彰
     */
    @ApiModelProperty(value = "31-部门表彰 32-公司表彰 33-客户表彰")
    @NotNull(message = "表彰类型不能为空", groups = {CreateGroup.class})
    private Integer type;
    /**
     * 0-奖状 1-邮件
     */
    @ApiModelProperty(value = "0-奖状 1-邮件")
    private Integer subType;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空", groups = {CreateGroup.class})
    private String title;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;
    /**
     * 发送人
     */
    @ApiModelProperty(value = "发送人")
    private String sender;
    /**
     * 接收人
     */
    @ApiModelProperty(value = "表彰人")
//    @NotBlank(message = "表彰人不能为空",groups = {CreateGroup.class})
    private String recipients;
    @ApiModelProperty(value = "表彰人")
    private List<String> recipientsList;
    /**
     * 状态 -1:删除, 0:关闭, 1:开启
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:关闭, 1:开启")
    private Integer status;
    /**
     * 附件id
     */
    @ApiModelProperty(value = "附件id")
    private String fileIds;
}